import time


def print_expired(f):
    def new_f(*args, **kwargs):
        start = time.time()
        result = f(*args, **kwargs)
        print('call', f.__name__, ':', (time.time() - start)*1000, 'milliseconds')
        return result
    return new_f

